package com.example.demo.service.impl;

import com.example.demo.entity.Bill;
import com.example.demo.entity.Bill1;
import com.example.demo.mapper.BillMapper;
import com.example.demo.service.BillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BillServiceImpl implements BillService {
    @Autowired
    private BillMapper billMapper;

    @Override
    public void insertBill(Bill bill) {
        billMapper.insertBill(bill);
    }

    @Override
    public List<Bill1> selectBill(String id) {
        return billMapper.selectBill(id);
    }

    @Override
    public void deleteBill(String id) {
        billMapper.deleteBill(id);
    }

    @Override
    public List<Bill1> selectBiBD(String id, String date) {
        return billMapper.selectBiBD(id,date);
    }
}
